package com.ponhu.ea2.constants;

import com.ponhu.ea2.enums.YesOrNoEnum;

/**
 * 公共常量类
 */
public class CommonConstant {

    public static final Integer SUCCESS = 200;

    /**
     * 商品中心图片服务器域名
     */
    public static final String GOODS_CENTER_IMG_DOMAIN = "https://img-ppcdn.ponhu.cn";

    // 生成货品编码分布式锁命名空间
    public static final String GENERATE_DIGIT= "GENERATE_DIGIT";
    // 生成货品编码分布式锁命名空间
    public static final String GENERATE_INVENTORY_CODE_LOCK = "GENERATE_INVENTORY_CODE_LOCK";

    // 类目层级：一级类目
    public static final Integer CATEGORY_LEVEL_1 = 1;
    // 类目层级：二级类目
    public static final Integer CATEGORY_LEVEL_2 = 2;
    // 类目层级：三级类目
    public static final Integer CATEGORY_LEVEL_3 = 3;

    // 货品类型：主品
    public static final Integer INVENTORY_TYPE_1 = 1;
    // 货品类型：附件
    public static final Integer INVENTORY_TYPE_2 = 2;
    // 货品类型：配件
    public static final Integer INVENTORY_TYPE_3 = 3;
    // 货品类型：赠品
    public static final Integer INVENTORY_TYPE_4 = 4;

    // 下载工具：任务状态，0-进行中，1-已完成
    public static final Integer STATUS_IN_PROGRESS = 0;
    public static final Integer STATUS_COMPLETED = 1;
    public static final Integer STATUS_FAIL = 2;

    // 货品详情类型：用于编辑回显
    public static final Integer INVENTORY_DETAIL_FOR_EDIT = 2;

    // 属性录入方式：1单行文本框
    public static final Integer PROP_INPUT_METHOD_1 = 1;
    // 属性录入方式：5多行文本框
    public static final Integer PROP_INPUT_METHOD_5 = 5;

    /**
     * 分隔符
     */
    public static final String SEPARATOR = ",";

    /**
     * 货品业务类型
     */
    public static final String BUSINESS_TYPE_INVENTORY = "ph_inventory";

    public static final String BUSINESS_TYPE_MASTERIAL = "ph_material";

    public static final String BUSINESS_TYPE_CLOUD_TRADE = "ph_cloudtrade_goods";

    /**
     * 操作记录日志类型
     */
    public interface OPERATION_RECORD_LOG_TYPE {
        int TABLE_COLUMNS_CHANGE = 0;//表字段变更类型
        int TEXT_ADD = 1;//添加文本类型
    }

    /**
     * 云商商品状态
     */
    public interface CLOUD_TRADE_GOODS_STATUS {
        int NO_CHECK = 0;//待审核
        int PASS = 1;//审核通过
        int NO_PASS = 2;//审核不通过
    }

    /**
     * 云商商品渠道
     */
    public static final int CLOUD_TRADE_INVENTORY_CHANNEL = 1;

    /**
     * 是否
     */
    public interface YES_OR_NO {
        int YES = YesOrNoEnum.YES.getCode();
        int NO = YesOrNoEnum.NO.getCode();
        String YES_STR = "yes";
        String NO_STR = "no";
    }

    /**
     * 选品导出数据限制条数
     */
    public static final int PICK_INVENTORY_IMPORT_LIMIT = 3000;

    /**
     * 采购价格是否需要计算
     */
    public static final String PROCUREMENTCHANNEL = "356,358";

    public static final int MAX_LOG_PRINT_SIZE = 10000;

    /**
     * 选品查询权限
     */
    public static final String USER_RULES_PICK_INVENTORY_SELECT = "commodity_300_roleDataUser";
}
